package com.mine.vioceplaylib.voice;

import java.util.List;

/**
 * 语音播报格式
 * 请+xxx+号+到+xxx+号，窗口办理业务
 */
public class VoiceBuilder {
    /**
     * 请
     */
    private String please;
    /**
     * 排队号码
     */
    private List<String> prefixNum;

    /**
     * 号
     */
    private String numStr;
    /**
     * 到
     */
    private String toStr;
    /**
     * 窗口号码
     */
    private String subfixNum;
    /**
     * 号，窗口办理业务
     */
    private String last;



    public VoiceBuilder(Builder builder) {
        this.please = builder.please;
        this.prefixNum = builder.prefixNum;
        this.numStr = builder.numStr;
        this.toStr = builder.toStr;
        this.subfixNum = builder.subfixNum;
        this.last = builder.last;
    }

    public static class Builder{

        /**
         * 请
         */
        private String please;
        /**
         * 排队号码
         */
        private List<String> prefixNum;
        /**
         * 号
         */
        private String numStr;
        /**
         * 到
         */
        private String toStr;
        /**
         * 窗口号码
         */
        private String subfixNum;
        /**
         * 号，窗口办理业务
         */
        private String last;


        public Builder setPlease(String please){
            this.please = please;
            return this;
        }

        public Builder setPrefixNum(List<String> prefixNum){
            this.prefixNum = prefixNum;
            return this;
        }

        public Builder setNumStr(String numStr){
            this.numStr = numStr;
            return this;
        }

        public Builder setToStr(String toStr){
            this.toStr = toStr;
            return this;
        }

        public Builder setSubfixNum(String subfixNum){
            this.subfixNum = subfixNum;
            return this;
        }

        public Builder setLast(String last){
            this.last = last;
            return this;
        }
        public VoiceBuilder builder() {
            return new VoiceBuilder(this);
        }
    }

    public String getPlease() {
        return please;
    }

    public List<String> getPrefixNum() {
        return prefixNum;
    }

    public String getNumStr() {
        return numStr;
    }

    public String getToStr() {
        return toStr;
    }

    public String getSubfixNum() {
        return subfixNum;
    }

    public String getLast() {
        return last;
    }
}
